package Thread;

import java.util.concurrent.Callable;

/**
 * @Author: jeason
 * @Description: provuder
 * @Date: 2020/7/13 0:20
 */
public class Provider1 implements Callable<Integer> {
    private Integer a;
    private Integer b;

    public Provider1(Integer a, Integer b) {
        this.a = a;
        this.b = b;
    }

    public Integer add(Integer a, Integer b) {
        return a+b;
    }

    @Override
    public Integer call() throws Exception {
        return add(a,b);
    }
}
